package com.cmcc.fj12580;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;

import com.cmcc.fj12580.utils.Constant;
import com.cmcc.fj12580.utils.UpdateApp;
import com.cmcc.fj12580.utils.UpdateCallback;
import com.funo.se.net.JSONParser;

public class Client_Main_Login extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// JSONParser.baseUrl="http://192.168.0.237:8080/bsc12580/servlet/CommonServlet";
		JSONParser.baseUrl = "http://218.207.182.80:8088/bsc12580/servlet/CommonServlet";
		// JSONParser.baseUrl="http://112.5.141.83:10200/bsc12580/servlet/CommonServlet";
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.mobilelogin);
		Constant constant = new Constant();
		constant.choiceCityInit(this);
		new Handler().postDelayed(new Runnable() {
			public void run() {
				UpdateApp updateApp = new UpdateApp(Client_Main_Login.this);
				Intent intent = new Intent(Client_Main_Login.this, Home_Left_NavigationBarActivity.class);
				Client_Main_Login.this.startActivity(intent);
				Client_Main_Login.this.finish();
				updateApp.detect(new UpdateCallback() {
					public void response(int msg) {
					}
				});

			}
		},500);
	}

}
